package com.dfd.shiro.service;

import com.dfd.shiro.model.Role;

import java.util.List;

public interface RoleService {


    int deleteByPrimaryKey(Integer roleId);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    /**
     * 根据用户id查询角色
     * @param userId    用户Id
     * @return
     */
    List<String> selectRoleByUserId(Integer userId);
}
